package com.ywd.materials.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 仓库关联用户实体类
 */
@Data
@TableName("materials_warehouse_user")
public class MaterialsWarehouseUserEntity implements Serializable {
    /**
     * 仓库关联用户ID
     */
    @Schema(description = "仓库关联用户ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Long materialsWarehouseId;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long sysUserId;
    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    private Long tenantId;
    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
    /**
     * 版本号
     */
    @Schema(description = "版本号")
    private Integer version;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 状态(0=停用,1=正常)
     */
    @Schema(description = "状态(0=停用,1=正常)")
    private Integer status;
    /**
     * 创建者
     */
    @Schema(description = "创建者")
    private Long creator;
    /**
     * 更新者
     */
    @Schema(description = "更新者")
    private Long updater;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;

    /**
     * 删除标识(0=正常,1=已删除)
     */
    @TableLogic
    @Schema(description = "删除标识(0=正常,1=已删除)")
    private Integer deleted;
}
